import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntegralExchangeRecordHelper } from "./SeqIntegralExchangeRecordHelper";
type int = number;
//class SIntegralExchangeRecords
    
    export  class SIntegralExchangeRecords extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SIntegralExchangeRecords();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.shopId);
            SeqIntegralExchangeRecordHelper.write(arg1, this.myRecords);
            SeqIntegralExchangeRecordHelper.write(arg1, this.systemRecords);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.shopId = arg1.readInt();
            this.myRecords = SeqIntegralExchangeRecordHelper.read(arg1);
            this.systemRecords = SeqIntegralExchangeRecordHelper.read(arg1);
            return;
        }

        public /* const */_type: int=596;

        public /* var */shopId: int;

        public /* var */myRecords: Array<any>;

        public /* var */systemRecords: Array<any>;

        public static /* var */_regist: SIntegralExchangeRecords;
    }

            SIntegralExchangeRecords._regist = new SIntegralExchangeRecords(true);
        